package service;

import domain.Account;

import java.io.InputStream;

/**
 * Created by aceyin on 2015/5/31 0031.
 */
public interface AccountService {
    ServiceResponse login(String username, String password, String ip);

    ServiceResponse register(Account account);

    ServiceResponse resetPassword(String mobile, String password);

    ServiceResponse uploadAvatar(long id, InputStream is);

    ServiceResponse changePassword(long id, String opassword, String password);
}
